/** When your routing table is too long, you can split it into small modules**/

import Layout from '@/layout'

const settingRouter = {
  path: '/setting',
  component: Layout,
  name: 'Setting',
  redirect: '/setting',
  meta: { title: 'Setting', icon: 'setting', roles: ['super_admin'] },
  children: [
    {
      path: '/setting',
      component: () => import('@/views/setting/index'),
      name: 'Setting',
      meta: { title: 'Setting', icon: 'setting', breadcrumb: false }
      },
      {
      path: 'Account',
      component: () => import('@/views/setting/index'),
      name: 'RateCard',
      query: {
        page: 'Account'
      },
      meta: { title: 'Account' },
      hidden: true,
      children: [
        {
          path: 'RateCard',
         component: () => import('@/views/setting/index'),
          name: 'RateCard',
          meta: { title: 'RateCard' },
          hidden: true
        }
       ]
       },
      {
        path: '/setting',
        hidden: true,
        component: () => import('@/views/setting/index'),
        name: 'Account',
        redirect: 'RateCard',
        meta: { title: 'Account', icon: 'setting', breadcrumb: false },
        children: [
          {
          path: 'Account',
         // component: () => import('@/views/setting/index'),
          name: 'RateCard',
          query: {
            page: 'Account'
          },
          meta: { title: 'Account' },
          hidden: true,
          children: [
            {
              path: 'RateCard',
              // component: () => import('@/views/setting/index'),
              name: 'RateCardEdit',
              meta: { title: 'RateCard' },
              redirect: '/setting/Account/RateCard',
              hidden: true,
              children: [
                {
                  path: '/setting/Account/RateCard/edit',
                  component: () => import('@/views/setting/Account/edit'),
                  name: 'RateCardEdit',
                  meta: { title: 'Edit' },
                  hidden: true
                }
              ]
            }
           ]
           }
      ]
      },
    {
      path: '/setting/edit',
      component: () => import('@/views/home/edit'),
      name: 'User',
      meta: { title: 'User' },
      hidden: true
    },

    {
      path: '/setting/userInfo',
      component: () => import('@/views/setting/userInfo'),
      name: 'userInfo',
      meta: { title: 'userInfo' },
      hidden: true
    }
  ]
}
export default settingRouter
